package com.xgimi.open.skill.datamanager.biz.utils;

import java.util.UUID;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/3/20 10:07
 */
public class BusinessIdUtil {
    public static final String skillPre = "xgimi.open.skill.";
    public static final String skillVersionPre = "xgimi.open.skillVersion.";
    public static final String wordStockPre = "xgimi.open.wordStock.";
    public static final String slotPre = "xgimi.open.slot.";
    public static final String intentPre = "xgimi.open.intent.";
    public static final String speechRulePre = "xgimi.open.speechRule.";

    public static String getUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String getSkillUUID() {
        return skillPre + getUUID();
    }

    public static String getSkillVersionUUID() {
        return skillVersionPre + getUUID();
    }

    public static String getWordStockUUID() {
        return wordStockPre + getUUID();
    }

    public static String getSlotUUID() {
        return slotPre + getUUID();
    }

    public static String getIntentUUID() {
        return intentPre + getUUID();
    }

    public static String getSpeechRuleUUID() {
        return speechRulePre + getUUID();
    }

}
